﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NTS-Notes-List.ascx.cs" Inherits="Notes_UserControls_NTS_Notes_List" %>


<asp:UpdatePanel ID="upMain" runat="server"  UpdateMode="Conditional" ><ContentTemplate>

    
     
    <div class="noumberbox">
    <%if(!string.IsNullOrEmpty(Convert.ToString(ViewState["TotalDocs"])))
{ %>
    	   		 <p class="fl">Total:  <%=Convert.ToString(ViewState["TotalDocs"]) %> items</p>
                 <%} %>

        <div class="numbering">
        	<ul id="ulPageing" runat="server">

             </ul>
        </div>
          <div class="clear"></div>	
          
          <div class="emptyRepeatermessage" id="divEmptyMessage" runat="server" style="display:none;">
          <asp:Label ID="lblEmptyMessage" runat="server" Text="Sorry no document Found. You can go to <a href='/Notes/NTS-Home.aspx'>Home Page</a> "></asp:Label></div>
    </div>
    
        
    <asp:Repeater ID="rptAdList" runat="server" OnItemDataBound="rptNotesList_ItemDataBound">
        <ItemTemplate>
            <div id="divFeatured" runat="server" class="clear">
            </div>
            <div id="divFeaturedImg" runat="server" class="featured">
                <%--<img src='<%# Eval("FeaturedAd") %>' height="77" width="76" border="0"--%></div>
         <asp:Label ID="lblIsActive" runat="server" Text='<%# Eval("IsActive")%>' Visible="false"></asp:Label>
         <asp:Label ID="lblFileID" runat="server" Text='<%# Eval("FileID")%>' Visible="false"></asp:Label>
         <asp:Label ID="lblFileName" runat="server" Text='<%# Eval("FileName")%>' Visible="false"></asp:Label>
            <div class="product_row bgwite">
                <div class="product_col_l">
                    <div class="porduct_img">
                            <a href="NTS-DocDetails.aspx?DocID=<%# Eval("FileID")%>">
                        <div id="imgIcon" runat="server"  class="medium" style="height:80px"/></a></div>
                    <div class="porduct_details">
                        <h3>
                            <a href="NTS-DocDetails.aspx?DocID=<%# Eval("FileID")%>" style="color: #00947B;"><%# Eval("Title") %>
                            </a></h3>
                        <p class="description">
                            <%# Eval("DocDesc")%></p>
                        <p class="fl">
                            <asp:Label ID="lblFeaturedAdID" runat="server" Visible="false" Text='0'></asp:Label></p>
                        <p class="ml10px">Document Type :<b><%# Eval("DocumentType") %></b></p> 
                        <p class=" ml10px"> Branch :<b> <%# Eval("Stream") %></b></p>
                        <p class=" ml10px"> Subject :<b><%#Eval("SubjectName")%></b></p>


                                    <p class="fr m5px"> 
                            <a href="NTS-DocDetails.aspx?DocID=<%# Eval("FileID")%>">
                     
                     <img src="/Notes/images/detail.jpg" height="30" width="100" border="0" alt=""/></a></p> 
                         <asp:Label ID="lblPostedBy" Text='<%# Eval("UserID") %>' Visible="false" runat="server"></asp:Label>
                         <p class="fr mt5px ml5px"><a href="/Notes/NTS-EditDoc.aspx?DocID=<%# Eval("FileID")%>">
                     <asp:Image ID="imgEdit" ImageUrl="~/Notes/images/edit.jpg" runat="server" Visible="false"/>
                     </a>
                     </p>
                     <p class="fr mt5px">
                     <asp:ImageButton ID="imgDelete" ImageUrl="/Notes/images/delete.jpg" OnClick="imgDelete_Click" AlternateText="Delete"  runat="server" Visible="false"></asp:ImageButton></p>
                <p class="fr mt5px">
                     <asp:ImageButton ID="imgActivate" ImageUrl="/Notes/images/activate1.jpg" OnClick="imgAcitvate_Click" AlternateText="Activate"  runat="server" Visible="false"></asp:ImageButton></p>
                 
                    </div>

                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
        
        
          <%if(!string.IsNullOrEmpty(Convert.ToString(ViewState["TotalDocs"])))
{ %>
    	   		 <p class="fl">Total:  <%=Convert.ToString(ViewState["TotalDocs"]) %> items</p>
                 <%} %>
        
       
        <div class="numbering">
                	<ul id="ulBottomPaging" runat="server">
                
             </ul>
        </div>
          <div class="clear"></div>	
    </ContentTemplate></asp:UpdatePanel>